import React, { Component } from 'react'
import {NavLink} from 'react-router-dom'

export default class MyNavLink extends Component {
	render() {
		// const {to,children} = this.props
		// return <NavLink className="list-group-item" activeClassName="atguigu" to={to} a={a}>{children}</NavLink>
		return (
			// <NavLink className="list-group-item" activeClassName="atguigu" to={this.props.to} children={this.props.children}/>
			<NavLink className="list-group-item" activeClassName="atguigu" {...this.props}/>
		)
	}
}
